
<%@ page language="java" import="animales.*,java.util.*" %>
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
<title>Prueba de sobresaliente</title>
<link href="css/css/bootstrap.css" rel="stylesheet">
<style type="text/css">
      body {
        padding-top: 60px;
        padding-bottom: 40px;
      }
    </style>
    <link href="css/css/bootstrap-responsive.css" rel="stylesheet">
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
      <div class="navbar-inner">
        <div class="container">
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            </a>
          <a class="brand" href="#">Prueba de sobresaliente</a>
          <div class="nav-collapse collapse">
            <ul class="nav">
              <li class="active"><a href="#">Inicio</a></li>
 <li><a href="animal.jsp">animal</a></li>
 <li><a href="Propietario.jsp">Propietario</a></li>
            </ul>
          </div>
        </div>
      </div>
    </div>
       
    <div class="container">

      <!-- Main hero unit for a primary marketing message or call to action -->
      <div class="hero-unit">
<tr>
<th>nombre</th>

<th>chip</th>

<th>raza</th>

	
</tr>
<% 
	animal r=new animal();
	List<animalDTO> temp=r.selectAll();
   for(animalDTO t: temp){ %>
   <tr>
<td>
<%=t.get_nombre()%>
</td>
<td>
<%=t.get_chip()%>
</td>
<td>
<%=t.get_raza()%>
</td>
	
   </tr>
 <%  }
   %>
</table>
<form id="form" action="addanimal.jsp" method="post">
<br />
A&Ntilde;ADIR<br />
nombre: <input type="text" name="nombre" id=""/><br />
chip: <input type="text" name="chip" id=""/><br />
raza: <input type="text" name="raza" id=""/><br />
<input type="submit" value="Enviar"/>
</form>

      </div>
      <table>
      <hr>

      <footer>
        <p>&copy; Grupazo SMA</p>
      </footer>

    </div> <!-- /container -->
  </body>
</html>
